﻿@{
    ViewBag.Title = "Timeline - Project Management System";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<h2>
    Timeline</h2>
<form id="form" action="" method="post">
<input type="hidden" id="ScheduleID" value="@ViewData["ScheduleID"]" />
<div class="content-box" id="Schedule">
    <!-- From Content Box -->
    <div class="content-box-header">
        <h3>
            Timeline</h3>
        <div class="clear">
        </div>
    </div>
    <!-- To .content-box-header -->
    <div class="content-box-content">
        @{ if (TempData["Message"] != null)
           {
            <div class="notification png_bg" id="messageBox">
                <a href="#" class="close">
                    <img src="../../Content/images/icons/cross_grey_small.png" title="Close this notification"
                        alt="close" /></a>
                <div>
                    @TempData["Message"].ToString()
                </div>
            </div>
           }
        }
        <fieldset>
            <div id="gantt" class="gantt">
            </div>
        </fieldset>
    </div>
</div>
</form>
<script type="text/javascript">
    $("#MSchedule").addClass("current");
    $("#Schedule").addClass("current");
    var id = $("#ScheduleID").val();


    $("#gantt").gantt({
        source: '../../JsonData/jsonData' + id + '.js',
        navigate: "scroll",
        scale: "days",
        maxScale: "months",
        minScale: "days",
        itemsPerPage: 10
    });
  
   


</script>
